import Decorator.Decorator;
import Decorator.*;

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");

        Component.Component textBox=new Component.TextComponents();

        Decorator decoratorFox2 = new DecoratorFox2(textBox);
        Decorator decoratorFox1 = new DecoratorFox1(decoratorFox2);
        Decorator decoratorFox3 = new DecoratorFox3(decoratorFox1);

        textBox.operation("F15");
        System.out.println("--------------------");
        decoratorFox2.operation("su27");
        System.out.println("--------------------");
        decoratorFox1.operation("F16");
        System.out.println("--------------------");
        decoratorFox3.operation("F22");
    }
}